<?php 
include 'functions.php';
function del($dirName){
	if(!is_dir($dirName)){
		return false;
	}
	foreach (glob($dirName . "/*") as $v) {
		is_dir($v)? del($v):unlink($v);
	}
	return rmdir($dirName);
}
//p(glob("0804-message-dir/1.message". "/*"));
del('./index');






 ?>